#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
char arr2[30] = "0";
void SubStr(char  arr1[], int pos, int t)
{
	int i = 0;
	int j = 0;
	for (j = 0, i = pos-1; j<t; i++, j++)
	{
		arr2[j] = arr1[i];
	}
}
int main()
{
	char arr1[30] = "0";
	int a = 0;
	int b = 0;
	gets(arr1);
	scanf("%d %d", &a, &b);
	SubStr(arr1, a, b);
	printf("%s",arr2);
	return 0;
}